package com.css.entity;

import java.io.IOException;
import java.util.Properties;

/**
 * <p>
 * -
 * </p>
 *
 * @author css
 * @since 2021/4/7
 */
public class Constant {
    public static Properties properties;
    public static String BASE_HTTP = null;
    public static String ACTIVE = "";
    static Constant object = new Constant();

    static {
        properties = new Properties();
        try {
            properties.load(object.getClass().getClassLoader().getResourceAsStream("config.properties"));
//            VERSION = properties.getProperty("VERSION");
//            VERSION_INDEX = Integer.valueOf(properties.getProperty("VERSION_INDEX"));
            BASE_HTTP = properties.getProperty("BASE_HTTP");
//            DOWNLOAD_HTTP = properties.getProperty("DOWNLOAD_HTTP");
            ACTIVE = properties.getProperty("ACTIVE");
        } catch (IOException e) {
//            BASE_HTTP = "";
            e.printStackTrace();
        }
    }
}
